<?
function array_replace($what, $where){
	foreach($what as $k=>$v)
		$where=str_replace('{'.$k.'}',$v,$where);
	return $where;
}

?>
